package com.zhuss.core.version;

import com.zhuss.bean.bo.core.version.VersionCompareBo;
import com.zhuss.common.ReadService;
import com.zhuss.core.processor.VersionRead;
import com.zhuss.exception.DzcxException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;


/**
 * 用户查询service（基本查询）
 * @author zhushanshuo
 * @Date 2019-12-13 15:59
 *
 */
@Component("versionReadService")
public class VersionReadService implements ReadService<Object, Object> {
	
	@Autowired
	@Qualifier("versionRead")
	private VersionRead versionRead;
	

	/**
	 * 比较
	 */
	public Object compare(VersionCompareBo param) throws DzcxException {
		VersionCompareBo bo = (VersionCompareBo) param;
		Float version = bo.getVersion();
		Object vo = versionRead.compare(version);
		return vo;
	}

	@Override
	public Object detail(Object o) throws DzcxException {
		return null;
	}

	@Override
	public Object list(Object o) throws DzcxException {
		return null;
	}
}

